#ifndef _COMMUNICATION_MESSAGE_HEAD_H
#define _COMMUNICATION_MESSAGE_HEAD_H

#include <vector>
#include "net-communication.h"

using namespace std;

/**
 * 存在队列中的消息格式
 */
class CommunicationMessage
{
public:
    CommunicationMessage(const vector<uint8_t> &packet, NetCommunication *netObj);
    vector<uint8_t> getPacket(void) const;
    NetCommunication *getNetCommunicationObject(void) const;

private:
    vector<uint8_t> packet;
    NetCommunication *netObj;
};

#endif